import { UserSimpleInfo } from "./user";

export interface SessionItems {
    id: number;
    coach_id: number,
    coach: UserSimpleInfo;
    unread: number;
    last_message: string;
    created_at: string;
    timestamp: string,
    user: UserSimpleInfo
}


export interface AttachmentItem {
    id: number
    url: string
    chat_id: number
    session_id: number
    media_type: number
}

export interface UserSessionMessageItem {
    start: number
    end: number
    result: ChatSessionMessageItem[]
}

export interface ChatSessionMessageItem {
    id: number;
    user_id?: number;
    coach_id: number;
    content: string;
    session_id: number;
    file_type: number;
    file_url?: string;
    created_at?: string;
    attachment?: AttachmentItem;
}

